package cn.tinlan.shopcoin.app.mine.order;

import com.chad.library.adapter.base.entity.SectionEntity;



/**
 * Created by Mortimer on 2018/11/27. 11:14
 * 佛祖🙏，永无bug。
 */
public class OrderItemModel extends SectionEntity<OrderItemModel.OrderItemBean> {
    public String id;
    public String status;
    public String order_sn;
    public String money;
    public String remark;
    public String mtype;//取货方式
    public String addtime;
    public String sendtime;

    public OrderResultModel resultModel;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getOrder_sn() {
        return order_sn;
    }

    public void setOrder_sn(String order_sn) {
        this.order_sn = order_sn;
    }

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getMtype() {
        return mtype;
    }

    public void setMtype(String mtype) {
        this.mtype = mtype;
    }

    public String getAddtime() {
        return addtime;
    }

    public void setAddtime(String addtime) {
        this.addtime = addtime;
    }

    public String getSendtime() {
        return sendtime;
    }

    public void setSendtime(String sendtime) {
        this.sendtime = sendtime;
    }

    public OrderResultModel getResultModel() {
        return resultModel;
    }

    public void setResultModel(OrderResultModel resultModel) {
        this.resultModel = resultModel;
    }

    public OrderItemModel(boolean isHeader, String header, OrderResultModel resultModel) {
        super(isHeader, header);
        this.resultModel = resultModel;
        this.id         = resultModel.getId();
        this.status   = resultModel.getStatus();
        this.order_sn   = resultModel.getOrder_sn();
        this.money      = resultModel.getMoney();
        this.remark   = resultModel.getRemark();
        this.mtype    = resultModel.getMtype();
        this.sendtime       = resultModel.getSendtime();
        this.addtime    = resultModel.getAddtime();


    }



    public OrderItemModel(OrderItemModel.OrderItemBean bean) {
        super(bean);
    }

    public static class OrderItemBean {
        private String id;
        private String order_id;
        private String goods_id;
        private String price;
        private String stock_id;
        private String buy_num;
        private String name;
        private String thumb;
        private String addtime;
        private String shop_id;
        private String shop_name;
        private boolean islastgood = false;

        private String allPrice;

        public String getAllPrice() {
            return allPrice;
        }

        public void setAllPrice(String allPrice) {
            this.allPrice = allPrice;
        }

        public String getAllNum() {
            return allNum;
        }

        public void setAllNum(String allNum) {
            this.allNum = allNum;
        }

        private String allNum;

        public OrderItemBean(OrderResultModel.OrderGoodModel goodModel, boolean islastgood,String allPrice,String allNum) {
            this.id         = goodModel.getId();
            this.order_id   = goodModel.getOrder_id();
            this.goods_id   = goodModel.getGoods_id();
            this.price      = goodModel.getPrice();
            this.stock_id   = goodModel.getStock_id();
            this.buy_num    = goodModel.getBuy_num();
            this.name       = goodModel.getName();
            this.thumb      = goodModel.getThumb();
            this.addtime    = goodModel.getAddtime();
            this.shop_id    = goodModel.getShop_id();
            this.shop_name  = goodModel.getShop_name();
            this.islastgood = islastgood;
            this.allPrice   = allPrice;
            this.allNum     = allNum;
        }

        public boolean isIslastgood() {
            return islastgood;
        }

        public void setIslastgood(boolean islastgood) {
            this.islastgood = islastgood;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getOrder_id() {
            return order_id;
        }

        public void setOrder_id(String order_id) {
            this.order_id = order_id;
        }

        public String getGoods_id() {
            return goods_id;
        }

        public void setGoods_id(String goods_id) {
            this.goods_id = goods_id;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getStock_id() {
            return stock_id;
        }

        public void setStock_id(String stock_id) {
            this.stock_id = stock_id;
        }

        public String getBuy_num() {
            return buy_num;
        }

        public void setBuy_num(String buy_num) {
            this.buy_num = buy_num;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getThumb() {
            return thumb;
        }

        public void setThumb(String thumb) {
            this.thumb = thumb;
        }

        public String getAddtime() {
            return addtime;
        }

        public void setAddtime(String addtime) {
            this.addtime = addtime;
        }

        public String getShop_id() {
            return shop_id;
        }

        public void setShop_id(String shop_id) {
            this.shop_id = shop_id;
        }

        public String getShop_name() {
            return shop_name;
        }

        public void setShop_name(String shop_name) {
            this.shop_name = shop_name;
        }
    }
}
